package com.sunshine.bean;

import java.sql.Timestamp;

/**
 * Created by along on 11/16/17.
 */
public class Article {
    private int id;
    private String title;
    private String content;
    private String type;
    private String attachment;
    private int viewCount;
    private Timestamp createdDate;

    public Article() {
    }

    public Article(int id, String title, String content, String type, String attachment, int viewCount, Timestamp createdDate) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.type = type;
        this.attachment = attachment;
        this.viewCount = viewCount;
        this.createdDate = createdDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public Timestamp getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Timestamp createdDate) {
        this.createdDate = createdDate;
    }

    public enum TYPE {HOTQUESTION, MOMENT}
}
